package com.unittec.zk.provider.exam.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.unittec.zk.provider.exam.entity.ElPaperQu;
import com.unittec.zk.sdk.exam.domain.PaperQuDetailDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ElPaperQuMapper extends BaseMapper<ElPaperQu> {
    /**
     * 统计客观分
     * @param paperId
     * @return
     */
    int sumObjective(@Param("paperId") String paperId);

    /**
     * 找出全部试题列表
     * @param paperId
     * @return
     */
    List<PaperQuDetailDTO> listForPaperResult(@Param("paperId") String paperId);
}